
{literal}
<script type="text/javascript">

var cbCount;

function selectAll(state){
	for(var i=0;i<document.userStats.elements.length;i++){
		if (document.userStats.elements[i].getAttribute('type')=='checkbox')
	 	document.userStats.elements[i].checked = state;
	}
}


function checkEmpty(){	//var formel = document.userStats.elements;	var isChecked = false;
	var i
	var s=0;	for(var i=0;i<document.userStats.elements.length;i++){		if (document.userStats.elements[i].getAttribute('type')=='checkbox' && document.userStats.elements[i].checked){
       isChecked = true;
       s++;
       }
	}
    return s;
}


function formSubmit(){
     if(!checkEmpty()) {     	alert ("Select at least one entry!");
     	return;
     }
     //alert(document.getElementById("action").value);
     if (document.getElementById("mailshotMode").value == "EmailNegativePerf"){     	 document.getElementById("action").value = 1;
     }
     //alert(document.getElementById("action").value);
     if (confirm("Message will be sent to "+checkEmpty()+" user(s)!"))
     document.userStats.submit();
}


function setNegativeCB() {
 	var cnter=1;
 	while(document.getElementById("trial"+cnter)) { 		if(document.getElementById("trial"+cnter).value=="" && document.getElementById("subscr"+cnter).value==0 && document.getElementById("pips"+cnter).value<=0) 			document.getElementById(cnter).checked=true; 		cnter++;
 	}
}

function showActCode(iid) {	var inputname = "code"+iid;
    if(document.getElementById("code"+iid).style.display=="none"){
 		document.getElementById("code"+iid).style.display="block";
 		//document.userStats.inputname.select();
 		//document.userStats.inputname.focus();
 	} else{
 		document.getElementById("code"+iid).style.display="none";
 	}
}

function deleteUser(uid,uname,umail) {

 	if (confirm("Do you really want to delate user "+uname+"("+umail+")?") && confirm("Do you still want to delate user "+uname+"("+umail+") ?")){
 			document.location="admin.php?p=userstats&uid="+uid+"&action=delete";
 	}
}


</script>
{/literal}

<h3>Add New MAP </h3>

{include file="admin/admin_menu.tpl"}





<form method="post" id="form_map_select">
<table>

<tr>
 <td>MAP Name<td>
 <td><input name="fullName" id="fullName" type="text"></td>
 </tr>

<tr>
 <td>Short MAP Name<td>
 <td><input name="shortName" id="shortName" type="text"> (e.g. SW, PA...)</td>
 </tr>

 <tr>
 <td>Short MAP Description<td>
 <td><textarea name="shortDescr" id="shortDescr" rows="3" cols="25"></textarea></td>
 </tr>

<tr>
 <td>System<td>
 <td>
 <select id="system" name="system" >
 	{assign var="undline" value="_"}
  {section name=item loop=$systems}
     <option value="{$systems[item].SystemID}">{$systems[item].Name}</option>
  {/section}
 </select>
 </td>
 </tr>




 <tr>
 <td>Deposit<td>
 <td><input name="calcDeposit" id="calcDeposit" type="text"></td>
 </tr>

 <tr>
 <td>Lot<td>
 <td><input name="calcLot" id="calcLot" type="text"></td>
 </tr>

 <tr>
 <td>Leverage<td>
 <td><select id="calcLeverage" class="select" name="calcLeverage">
        <option value="1">1:1</option>
        <option value="2">2:1</option>
        <option value="3">3:1</option>
        <option value="5">5:1</option>
        <option value="10">10:1</option>
        <option value="20">20:1</option>
        <option value="50">50:1</option>
        <option value="100" selected>100:1</option>
        <option value="200">200:1</option>
        </select></td>
 </tr>

<table>

<br><br><input type="submit" class="button" value="Add">


</form>





<br><br>

